#include "DataEngine.h"
#include "View.h"
#include "CumRoomOrder.h"
class FrontEndView : public View
{
private:
	HWND hWnd;
	HWND m_hCumName;
	HWND m_hSex;
	HWND m_hTelNo;
	HWND m_hAge;
	HWND m_hRoomID;
	HWND m_hCardID;
	HWND m_hWndDays;
	HWND m_hPrice;
	HWND m_hCommit;
	HWND m_hListView;
	HWND m_hCancel;
	HWND m_hSubmit;
	CumRoomOrder* m_pOrder;
	CumRoomOrderCollect* m_pOrders;
public:
	FrontEndView();
	int AddSchedule();
	int Register();
	int Init(HWND);
	int AddRecord();
	int ClearControls();
	int AddToListView(char* pCumName,char* pInDays,char* pRoomID);
	int Destroy();
	int ProcessNotify(UINT,WPARAM,LPARAM);
	int MakeOrder();
public:
	static int RegFrontEndWinClass();
	static LRESULT CALLBACK WindowProc(HWND,UINT ,WPARAM ,LPARAM);
	LRESULT TriggerCommandMessage(WPARAM,LPARAM);
};


